<?php
/**
 * Created by JetBrains PhpStorm.
 * User: dung
 * Date: 2/22/14
 * Time: 2:14 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<?php
if(isset($_SESSION["users_id"]) && $_SESSION["group_id"]==1){
    $id=$_GET["user_id"];
    settype($id,"int");
    DeleteUser($id);
    header("location:index.php?p=userlist");
}else{
    header("location:index.php?p=logincp");
}
?>